import requst from"@/utils/request"
export function listall(){
    return requst({
        url:'/dishes/all',
        method:'get'
    })
}
export function add(dishType){
    return requst({
        url:'dishes/add',
        method:'post',
        data:dishType
    })
}
export function updatedish(dishType){
return requst({
    url:'/dishes/update',
    method:'post',
    data:dishType
})
}
export function deletedish(dishid){
    return requst({
        url:'/dishes/remove',
        method:'delete',
        params:{
            dishid:dishid
        }
    })
}
export function getappitite(dishid){
    return requst({
        url:'/dishes/getappitite',
        method:'get',
        params:{dishid:dishid}
    })
}